#include <stdio.h>

int main () {
	int n , i , j;
	do {
		printf("Enter an integer greater than 1: ");
		scanf("%d",&n);
		if (n <= 1)
			printf("Error: n<= 1\n");
		else {
			for (i=2;i<n;i++) {
				j = n % i;
				if (j == 0) {
					printf("%d is not a prime number.",n);
					return 0;
				}
			}
			printf("%d is a prime number.",n);
		}	
	} while (n <= 1);
	
	return (0);
}
